<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>原料管理</title>

    <link rel="stylesheet" type="text/css" href="../../../jquery-easyui-1.6.7/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="../../../jquery-easyui-1.6.7/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="../../../jquery-easyui-1.6.7/demo/demo.css">
    <link rel="stylesheet" type="text/css" href="../../../jquery-easyui-1.6.7/themes/bootstrap/easyui.css">
    <script type="text/javascript" src="../../../jquery-easyui-1.6.7/jquery.min.js"></script>
    <script type="text/javascript" src="../../../jquery-easyui-1.6.7/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="../../../jquery-easyui-1.6.7/jquery.color.js"></script>
    <script type="text/javascript" src="../../../jquery-easyui-1.6.7/locale/easyui-lang-zh_CN.js"></script>

    <link rel="stylesheet" type="text/css" href="../../../KendoUI/styles/kendo.common.min.css" />
    <link rel="stylesheet" type="text/css" href="../../../KendoUI/styles/kendo.default.min.css" />
    <link rel="stylesheet" type="text/css" href="../../../KendoUI/styles/kendo.default.mobile.min.css" />
    <link rel="stylesheet" type="text/css" href="../../../KendoUI/styles/kendo.rtl.min.css" />
    <script type="text/javascript" src="../../../KendoUI/js/jszip.min.js"></script>
    <script type="text/javascript" src="../../../KendoUI/js/kendo.all.min.js"></script>
    <script type="text/javascript" src="../../../KendoUI/js/messages/kendo.messages.zh-CN.min.js"></script>

    <script type="text/javascript" src="../../../publicJS/publicJS.js" ></script>
    <link rel="stylesheet" type="text/css" href="../../../publicJS/global.css" />

    <script src="../../js/materialplan.js" type="text/javascript"></script>
    <link href="../../css/materialplan.css" type="text/css" rel="stylesheet" >

    <link href="../../css/materialplanA.css" type="text/css" rel="stylesheet">
    <script src="../../js/materialplanA.js" type="text/javascript"></script>

    <!--    /*设置文本框，拉下字体*/-->
    <link href="../../css/settextbox.css" type="text/css" rel="stylesheet" >
</head>
<body>


<div class="plan_main">
    <div class="plan_top">
        <div class="plandate">
            <div class="demos">
                <label>起始日期：</label>
                <input id="start" class="easyui-datebox"
                       data-options="width:120,value:getDate(-7),disabled:false">
            </div>
            <div class="demos">
                <label>终止日期：</label>
                <input id="end" class="easyui-datebox"
                       data-options="width:120,value:getDate(0),disabled:false">
            </div>
        </div>

        <div class="planbutton" id="north">

            <a id="updateplan" href="#" class="easyui-linkbutton" onclick="refresh()"
               data-options="iconCls:'icon-search',iconAlign:'bottom'">查询</a>

            <a id="addplan0" href="#" class="easyui-linkbutton" onclick="addplan('原料入库')"  title="新增数值正数表示增加库存，入库只能录入正数 ！"
               data-options="iconCls:'icon-add',iconAlign:'bottom',width:80">新增入库</a>
            <a id="addplan1" href="#" class="easyui-linkbutton" onclick="addplan('原料退回')" title="新增数值正数表示减少库存，退料只能录入正数！"
               data-options="iconCls:'icon-add',iconAlign:'bottom',width:80">原料退回</a>
            <a id="addplan2" href="#" class="easyui-linkbutton" onclick="addplan('原料领料')" title="新增数值正数表示减少库存，领料只能录入正数！"
               data-options="iconCls:'icon-add',iconAlign:'bottom',width:80">新增出库</a>
            <a id="addplan3" href="#" class="easyui-linkbutton" onclick="addplan('领料退回')" title="新增数值正数表示增加库存，领料只能录入正数！"
               data-options="iconCls:'icon-add',iconAlign:'bottom',width:80">领料退回</a>
            <a id="addplan4" href="#" class="easyui-linkbutton" onclick="addplan('原料盘点')" title="盘点单据 正数表示增加库存，负数表示减少库存！"
               data-options="iconCls:'icon-add',iconAlign:'bottom',width:80">盘点</a>

<!--            <a id="printplan" href="#" class="easyui-linkbutton" onclick=""-->
<!--               data-options="iconCls:'icon-print',iconAlign:'bottom'">打印</a>-->
            <a id="cleanupplan" href="#" class="easyui-linkbutton" onclick="btn_cancel_filter()"
               data-options="iconCls:'icon-remove',iconAlign:'bottom',width:80">清除过滤</a>
            <!--            <a id="deleteplan" href="#" class="easyui-linkbutton" onclick="deleteplan()"-->
            <!--               data-options="iconCls:'icon-cancel',iconAlign:'bottom'">删除</a>-->
            <a id="closeplan" href="#" class="easyui-linkbutton" onclick="closeTab()"
               data-options="iconCls:'icon-no',iconAlign:'bottom'">关闭</a>

        </div>
    </div>

    <div class="plan_text">
        <div id="tabs" class="easyui-tabs"data-options="fit:true,onSelect:onSelect">
            <div title="原料入库">
                <table id="bill"></table>
            </div>
            <div title="原料库存">
                <table id="bill_a"></table>
            </div>
            <div title="原料出库">
                <table id="bill_b"></table>
            </div>
            <div title="已作废">
                <table id="bill_c"></table>
            </div>
        </div>
    </div>


    <div id="A" class="easyui-window" title="编辑页面"
         data-options="width:750,height:500,modal:true,minimizable:false,maximizable:false,closable:false,maximized:false,
         closed:true,collapsible:false,draggable:true">
        <div class="plan_mainA">
            <div class="plan_topA" id="topA">
                <a id="addplanA" href="#" class="easyui-linkbutton butA" onclick="addplanA()"
                   data-options="iconCls:'icon-add',iconAlign:'left'">新增</a>
                <a id="updateplanA" href="#" class="easyui-linkbutton butA" onclick="updateplanA()"
                   data-options="iconCls:'icon-reload',iconAlign:'left'">修改</a>
                <a id="saveplanA" href="#" class="easyui-linkbutton butA" onclick="saveA()"
                   data-options="iconCls:'icon-save',iconAlign:'left',">保存</a>
                <a id="copyplanA" href="#" class="easyui-linkbutton butA" onclick="copyplanA()"
                   data-options="iconCls:'icon-search',iconAlign:'left'">复制</a>

<!--                <a id="printplanA" href="#" class="easyui-linkbutton butA" onclick=""-->
<!--                   data-options="iconCls:'icon-print',iconAlign:'left'">打印</a>-->
                <a id="deleteplanA" href="#" class="easyui-linkbutton butA" onclick="deleteplanA()"
                   data-options="iconCls:'icon-cancel',iconAlign:'left'">作废</a>
                <a id="reloadA" href="#" class="easyui-linkbutton butA" onclick="reloadA()"
                   data-options="iconCls:'icon-reload',iconAlign:'left'">刷新</a>
                <a id="closeplanA" href="#" class="easyui-linkbutton butA" onclick="closeTabA()"
                   data-options="iconCls:'icon-no',iconAlign:'left'">关闭</a>
            </div>
            <div class="plan_textA">
                <div  style="position: absolute;left: 80px;top:60px;">

                    <ul class="info" style="list-style:none;padding: 1px;">
                        <li class="info-item">
                            <nobr>
                                <label >制单日期:</label>
                                <input id="billcodeDate" type="text" class="easyui-datebox" required="required" style="height:35px;width:200px">
                                <label >单据编号:</label>
                                <input id="billcode"  class="easyui-textbox" data-options="" style="height:35px;width:200px">
                            </nobr>
                        </li>
                        <li class="info-item">
                            <nobr>
                                <label >单据类型:</label>
                                <input id="billcodetype"  class="easyui-combobox"  data-options="limitToList:'true',required:'true',"
                                       style="height:35px;width:200px">
                                <label>仓位:</label>
                                <input id="cw" class="easyui-textbox" data-options="" style="height:35px;width:200px">
                            </nobr>
                        </li>

                        <li class="info-item">
                            <label>送货单号:</label>
                            <input id="ddh" class="easyui-textbox" data-options="" style="height:35px;width:200px">
                            <label>供应商:</label>
                            <input  id="supplier" class="easyui-combobox"  data-options="limitToList:'true'"
                                    style="height:35px;width:200px">
                        </li>
                        <li class="info-item">
                            <label>客户:</label>
                            <input  id="clientName" class="easyui-combobox"  data-options="limitToList:'true',required:'true'"
                                    style="height:35px;width:200px">
                            <label>品  名:</label>
                            <input  id="pm" class="easyui-combobox"  data-options="limitToList:'true',required:'true'"
                                    style="height:35px;width:200px">
                        </li>

                        <li class="info-item">
                            <label>件数:</label>
                            <input id="ps" class="easyui-textbox" data-options="" style="height:35px;width:200px">
                            <label>计划重量:</label>
                            <input id="planqty" class="easyui-textbox" data-options="required:'true'" style="height:35px;width:200px">
                        </li>

                        <li class="info-item">
                            <label>备注:</label>
                            <input id="memo" class="easyui-textbox" data-options="multiline:'true'" style="height:70px;width:490px">
                        </li>
                    </ul>
                </div>
            </div>
        </div>

    </div>

<!--    作废备注-->
    <div id="D" class="easyui-window" title="编辑页面"
         style="width:330px;height:260px;padding:10px;"
         data-options="modal:true,collapsible:false,minimizable:false,maximizable:false,closable:true,
                       closed:true,draggable:true">
        <br>
        <label style="font-size: 14px;font-weight: bold;">作废原因：</label>
        <input id="tovoidMemoD" class="easyui-textbox" data-options="multiline:'true',required:'true'" style="height:70px;width:200px">
        <br><br>
        <label style="font-size: 14px;font-weight: bold;">密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码：</label>
        <input id="passD" class="easyui-passwordbox" data-options="multiline:'true',required:'true'" style="height:30px;width:200px">
        <br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <input onclick="tovoidMemoSaveD()" class="numberbuttonY" type="button" value="保存"
               style="height: 35px;width: 90px">
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <input onclick="tovoidMemocancelD()" class="numberbuttonY" type="button" value="取消"
               style="height: 35px;width: 90px">
    </div>

</div>


</body>
</html>